package cn.njxzc.examples;

import cn.njxzc.exercises.ProMethod;

class Student

{
	String name, stuNumber;
	double score1, score2, score3;

	void set1(String s1, String s2) {
		name = s1;
		stuNumber = s2;
		System.out.println(name + "" + stuNumber);
	}

	String getName() {
		return name;
	}

	void setName(String name) {
		this.name = name;
	}

	String getStuNumber() {
		return stuNumber;
	}

	void setStuNumber(String stuNumber) {
		this.stuNumber = stuNumber;
	}

	double getScore1() {
		return score1;
	}

	void setScore1(double score1) {
		this.score1 = score1;
	}

	double getScore2() {
		return score2;
	}

	void setScore2(double score2) {
		this.score2 = score2;
	}

	double getScore3() {
		return score3;
	}

	void setScore3(double score3) {
		this.score3 = score3;
	}

	double setScore(double d1, double d2, double d3) {
		double d;
		score1 = d1;
		score2 = d2;
		score3 = d3;
		d = d1 + d2 + d3;
		return d;
	}

}

public class Exam3_1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		double ls = 0;
		Student st = new Student();
		ls = st.setScore(12.0, 34.8, 56.9);
		System.out.println("score1=" + st.score1);
		ls = st.score1 + st.score2;
		ProMethod pm = new ProMethod();
		pm.prime(101, 305);
	}

}
